import request from '@/utils/request'

export function getCarouselListByPage(data) {
  return request.get('/carousel/list', { params: data })
}

export function getAllCarousel(data) {
  return request.get('/carousels', data)
}

export function addCarousel(data) {
  return request.post('/carousel', data)
}

export function updateCarousel(data) {
  return request.put('/carousel', data)
}

export function deleteCarousel(id) {
  return request.delete('/carousel/' + id, id)
}
